package com.example.demo.service;

import com.example.demo.entity.JsonResult;
import com.example.demo.entity.WorkTable;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public interface RunTable2Service {
    //开始工作
    JsonResult startRunTable(WorkTable workTable);
    //更新工作
    JsonResult updateMemberWork(WorkTable workTable);
    //结束工作
    JsonResult endMemberWork(WorkTable workTable);
    //再次开始工作
    void startRunTableAgain(Integer id);
    //判断工作状态
    JsonResult loginMemberJudge(String phone);
    //项目关闭再次请求
    JsonResult getError(Integer error, String phone);

    //查询判断最近的一条工作数据
    WorkTable getWorkTable(String phone);
    //获取上次更新时间
    Date getStartTime(String phone);


}
